from django.core.mail import send_mail
from celery_tasks.main import app


@app.task
def send_email(recipient_list, html_message):

        subject = '美多商场激活邮件'
        message = ''
        from_email = '美多商城<ragnarokzrz@163.com>'


        send_mail(subject=subject,
                  message=message,
                  from_email=from_email,
                  recipient_list=recipient_list,
                  html_message=html_message)